package com.chen.authority.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.authority.common.model.PageQo;
import com.chen.authority.common.response.Response;
import com.chen.authority.model.dto.DictTypeDto;
import com.chen.authority.model.po.DictTypePo;
import com.chen.authority.model.qo.DictTypeQo;
import com.chen.authority.model.vo.DictTypeVo;

import java.util.List;

/**
 * 字典类型 Service接口
 *
 * @author chengy
 * @date 2023-09-04
 */
public interface DictTypeService extends IService<DictTypePo> {

    Page<DictTypeVo> pageQueryDictTypeList(PageQo pageQo, DictTypeQo dictTypeQo);

    Response addOrUpdateDictType(Integer id, DictTypeDto dto);

    Response deleteDictTypeByIds(List<Integer> ids);

    List<DictTypeVo> exportDictTypeList(QueryWrapper<DictTypePo> queryWrapper);

}